package cn.tedu.boot22.vo;

public class User {
    private String username;
    private String password;
    private String nick;

    /*
        实体类中添加了有参构造方法之后，则不会自动添加无参构造方法
        但是有些框架帮助我们实例化对象时调用的是无参构造方法 所以无参必须有
     */
    public User() {
    }

    public User(String username, String password, String nick) {
        this.username = username;
        this.password = password;
        this.nick = nick;
    }

    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", nick='" + nick + '\'' +
                '}';
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }
}
